import request from './request.js'

const accessory = {
  //获取分类筛选条件列表
  getCategoryList(data) {
    return request.post('/business/CarPart/GetCarPartCategoriesByParentId', data)
  },

  // 寻配件首页列表
  getCarPartListPaged(data) {
    return request.post('/business/CarPart/GetCarPartListPaged', data)
  },

  // 图片获取vin码
  getVin(data) {
    return request.post('/business/CarPart/GetVinByImageFilePath', data)
  },

  //  vin获取车型
  getCarAdaptation(data) {
    return request.post('/business/CarPart/GetCarAdaptation', data)
  },

  //列表列表
  getCarPartCategories(data) {
    return request.post('/business/CarPart/GetCarPartCategories', data)
  },

  //提交/修改询价
  addOrEditCarPart(data) {
    return request.post('/business/CarPart/AddOrEditCarPart', data)
  },

  //获取我的询价列表
  getInquiryList(data) {
    return request.post('/business/CarPart/GetMyCarPartListPaged', data)
  },

  //取消询价
  cancelCarPart(data) {
    return request.post('/business/CarPart/CancelCarPart', data)
  },

  //上架
  onTheShelfCarPart(data) {
    return request.post('/business/CarPart/OnTheShelfCarPart', data)
  },

  //删除询价
  deleteCarPart(data) {
    return request.post('/business/CarPart/DeleteCarPart', data)
  },

  //查看询件详情
  getInquiryInfo(data) {
    return request.post('/business/CarPart/GetCarPart', data)
  },

  //获取询价单的报价列表
  getInquiryBidding(data) {
    return request.post('/business/CarPart/GetMyCarPartOfferList', data)
  },

  //获取询价详情（含报价，添加/编辑报价时）
  getCarPartOfferByCarPartId(data) {
    return request.post('/business/CarPart/GetCarPartOfferByCarPartId', data)
  },

  // 新增/编辑报价
  submitQuote(data) {
    return request.post('/business/CarPart/AddOrEditCarPartOffer', data)
  },

  //添加浏览记录
  addCarPartBrowseNumber(data) {
    return request.post('/business/CarPart/AddCarPartBrowseNumber', data)
  },

  // 推荐询件列表
  getRecommendList(data) {
    return request.post('/business/CarPart/GetRecommendCarPartListPaged', data)
  },

  //报价列表
  getQupoteList(data) {
    return request.post('/business/CarPart/GetMyCarPartOfferListPaged', data)
  },

  //我的询价-获取报价详情
  getQupoteInfo(data) {
    return request.post('business/CarPart/GetCarPartOfferList', data)
  },

  //提交配件订单预览
  previewOrder(data) {
    return request.post('/business/CarPart/CreateOrder', data)
  },

  //提交配件订单预览
  createOrder(data) {
    return request.post('/business/OrderParts/OrderPartsCreate', data)
  },

  //询价单列表
  inquiryOrderList(data) {
    return request.post('/business/OrderParts/GetBuyOrderPartsList', data)
  },

  //报价单列表
  quoteOrderList(data) {
    return request.post('/business/OrderParts/GetSellOrderPartsList', data)
  },

  //报价订单详情
  orderDetail(data) {
    return request.post('/business/OrderParts/OrderPartsDetails', data)
  },

  //发货 录入物流信息
  setLogistics(data) {
    return request.post('/business/OrderParts/OrderPartsAlterDepart', data)
  },

  //确认收货
  confirmReceive(data) {
    return request.post('/business/OrderParts/OrderPartsAlterReceive', data)
  },

  //删除订单
  deleteOrder(data) {
    return request.post('/business/OrderParts/OrderPartsAlterDelete', data)
  },

  //取消订单
  cancelOrder(data) {
    return request.post('/business/OrderParts/OrderPartsAlterCancel', data)
  },

}

export default accessory